package com.autohome.wz.business.order.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class CouponCode implements Serializable {
    private Integer id;

    private String codeNo;

    private String batchNo;

    private String batchExtendNo;

    private Integer bindFlag;

    private String bindPhone;

    private Date validStartTime;

    private Date validEndTime;

    private Date getTime;

    private Date bindTime;

    private String orderNum;

    private Integer sendSmsFlag;

    private Integer sendAppFlag;

    private String userId;

    private Date createTime;

    private Integer validFlag;

    private Integer createState;

    private String device;

    private String devGuid;

    private String sourceObj;

    private Integer couponType;

    private String other;

    private Integer channel;

    private Integer preferentialType;

    private BigDecimal couponMoney;

    private String couponTitle;

    private String couponRule;

    private Integer ruleType;

    private BigDecimal maxPreferentialPrice;

    private BigDecimal discountPrice;

    private Integer validTimeType;

    private Integer validDays;

    private BigDecimal realDiscountMoney;

    private String urlUse;

    private String mobileEn;

    private Integer registerUserFlag;

    private Integer bussinessUserFlag;

    private Integer isNewRule;

    private Integer limitUseFlag;

    private Integer ratio;

    private Date smswarnTime;

    private String moreChannel;

    private String activityKey;

    private Integer couponFlag;

    private String ruleDesc;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCodeNo() {
        return codeNo;
    }

    public void setCodeNo(String codeNo) {
        this.codeNo = codeNo == null ? null : codeNo.trim();
    }

    public String getBatchNo() {
        return batchNo;
    }

    public void setBatchNo(String batchNo) {
        this.batchNo = batchNo == null ? null : batchNo.trim();
    }

    public String getBatchExtendNo() {
        return batchExtendNo;
    }

    public void setBatchExtendNo(String batchExtendNo) {
        this.batchExtendNo = batchExtendNo == null ? null : batchExtendNo.trim();
    }

    public Integer getBindFlag() {
        return bindFlag;
    }

    public void setBindFlag(Integer bindFlag) {
        this.bindFlag = bindFlag;
    }

    public String getBindPhone() {
        return bindPhone;
    }

    public void setBindPhone(String bindPhone) {
        this.bindPhone = bindPhone == null ? null : bindPhone.trim();
    }

    public Date getValidStartTime() {
        return validStartTime;
    }

    public void setValidStartTime(Date validStartTime) {
        this.validStartTime = validStartTime;
    }

    public Date getValidEndTime() {
        return validEndTime;
    }

    public void setValidEndTime(Date validEndTime) {
        this.validEndTime = validEndTime;
    }

    public Date getGetTime() {
        return getTime;
    }

    public void setGetTime(Date getTime) {
        this.getTime = getTime;
    }

    public Date getBindTime() {
        return bindTime;
    }

    public void setBindTime(Date bindTime) {
        this.bindTime = bindTime;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum == null ? null : orderNum.trim();
    }

    public Integer getSendSmsFlag() {
        return sendSmsFlag;
    }

    public void setSendSmsFlag(Integer sendSmsFlag) {
        this.sendSmsFlag = sendSmsFlag;
    }

    public Integer getSendAppFlag() {
        return sendAppFlag;
    }

    public void setSendAppFlag(Integer sendAppFlag) {
        this.sendAppFlag = sendAppFlag;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getValidFlag() {
        return validFlag;
    }

    public void setValidFlag(Integer validFlag) {
        this.validFlag = validFlag;
    }

    public Integer getCreateState() {
        return createState;
    }

    public void setCreateState(Integer createState) {
        this.createState = createState;
    }

    public String getDevice() {
        return device;
    }

    public void setDevice(String device) {
        this.device = device == null ? null : device.trim();
    }

    public String getDevGuid() {
        return devGuid;
    }

    public void setDevGuid(String devGuid) {
        this.devGuid = devGuid == null ? null : devGuid.trim();
    }

    public String getSourceObj() {
        return sourceObj;
    }

    public void setSourceObj(String sourceObj) {
        this.sourceObj = sourceObj == null ? null : sourceObj.trim();
    }

    public Integer getCouponType() {
        return couponType;
    }

    public void setCouponType(Integer couponType) {
        this.couponType = couponType;
    }

    public String getOther() {
        return other;
    }

    public void setOther(String other) {
        this.other = other == null ? null : other.trim();
    }

    public Integer getChannel() {
        return channel;
    }

    public void setChannel(Integer channel) {
        this.channel = channel;
    }

    public Integer getPreferentialType() {
        return preferentialType;
    }

    public void setPreferentialType(Integer preferentialType) {
        this.preferentialType = preferentialType;
    }

    public BigDecimal getCouponMoney() {
        return couponMoney;
    }

    public void setCouponMoney(BigDecimal couponMoney) {
        this.couponMoney = couponMoney;
    }

    public String getCouponTitle() {
        return couponTitle;
    }

    public void setCouponTitle(String couponTitle) {
        this.couponTitle = couponTitle == null ? null : couponTitle.trim();
    }

    public String getCouponRule() {
        return couponRule;
    }

    public void setCouponRule(String couponRule) {
        this.couponRule = couponRule == null ? null : couponRule.trim();
    }

    public Integer getRuleType() {
        return ruleType;
    }

    public void setRuleType(Integer ruleType) {
        this.ruleType = ruleType;
    }

    public BigDecimal getMaxPreferentialPrice() {
        return maxPreferentialPrice;
    }

    public void setMaxPreferentialPrice(BigDecimal maxPreferentialPrice) {
        this.maxPreferentialPrice = maxPreferentialPrice;
    }

    public BigDecimal getDiscountPrice() {
        return discountPrice;
    }

    public void setDiscountPrice(BigDecimal discountPrice) {
        this.discountPrice = discountPrice;
    }

    public Integer getValidTimeType() {
        return validTimeType;
    }

    public void setValidTimeType(Integer validTimeType) {
        this.validTimeType = validTimeType;
    }

    public Integer getValidDays() {
        return validDays;
    }

    public void setValidDays(Integer validDays) {
        this.validDays = validDays;
    }

    public BigDecimal getRealDiscountMoney() {
        return realDiscountMoney;
    }

    public void setRealDiscountMoney(BigDecimal realDiscountMoney) {
        this.realDiscountMoney = realDiscountMoney;
    }

    public String getUrlUse() {
        return urlUse;
    }

    public void setUrlUse(String urlUse) {
        this.urlUse = urlUse == null ? null : urlUse.trim();
    }

    public String getMobileEn() {
        return mobileEn;
    }

    public void setMobileEn(String mobileEn) {
        this.mobileEn = mobileEn == null ? null : mobileEn.trim();
    }

    public Integer getRegisterUserFlag() {
        return registerUserFlag;
    }

    public void setRegisterUserFlag(Integer registerUserFlag) {
        this.registerUserFlag = registerUserFlag;
    }

    public Integer getBussinessUserFlag() {
        return bussinessUserFlag;
    }

    public void setBussinessUserFlag(Integer bussinessUserFlag) {
        this.bussinessUserFlag = bussinessUserFlag;
    }

    public Integer getIsNewRule() {
        return isNewRule;
    }

    public void setIsNewRule(Integer isNewRule) {
        this.isNewRule = isNewRule;
    }

    public Integer getLimitUseFlag() {
        return limitUseFlag;
    }

    public void setLimitUseFlag(Integer limitUseFlag) {
        this.limitUseFlag = limitUseFlag;
    }

    public Integer getRatio() {
        return ratio;
    }

    public void setRatio(Integer ratio) {
        this.ratio = ratio;
    }

    public Date getSmswarnTime() {
        return smswarnTime;
    }

    public void setSmswarnTime(Date smswarnTime) {
        this.smswarnTime = smswarnTime;
    }

    public String getMoreChannel() {
        return moreChannel;
    }

    public void setMoreChannel(String moreChannel) {
        this.moreChannel = moreChannel == null ? null : moreChannel.trim();
    }

    public String getActivityKey() {
        return activityKey;
    }

    public void setActivityKey(String activityKey) {
        this.activityKey = activityKey == null ? null : activityKey.trim();
    }

    public Integer getCouponFlag() {
        return couponFlag;
    }

    public void setCouponFlag(Integer couponFlag) {
        this.couponFlag = couponFlag;
    }

    public String getRuleDesc() {
        return ruleDesc;
    }

    public void setRuleDesc(String ruleDesc) {
        this.ruleDesc = ruleDesc == null ? null : ruleDesc.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CouponCode other = (CouponCode) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCodeNo() == null ? other.getCodeNo() == null : this.getCodeNo().equals(other.getCodeNo()))
            && (this.getBatchNo() == null ? other.getBatchNo() == null : this.getBatchNo().equals(other.getBatchNo()))
            && (this.getBatchExtendNo() == null ? other.getBatchExtendNo() == null : this.getBatchExtendNo().equals(other.getBatchExtendNo()))
            && (this.getBindFlag() == null ? other.getBindFlag() == null : this.getBindFlag().equals(other.getBindFlag()))
            && (this.getBindPhone() == null ? other.getBindPhone() == null : this.getBindPhone().equals(other.getBindPhone()))
            && (this.getValidStartTime() == null ? other.getValidStartTime() == null : this.getValidStartTime().equals(other.getValidStartTime()))
            && (this.getValidEndTime() == null ? other.getValidEndTime() == null : this.getValidEndTime().equals(other.getValidEndTime()))
            && (this.getGetTime() == null ? other.getGetTime() == null : this.getGetTime().equals(other.getGetTime()))
            && (this.getBindTime() == null ? other.getBindTime() == null : this.getBindTime().equals(other.getBindTime()))
            && (this.getOrderNum() == null ? other.getOrderNum() == null : this.getOrderNum().equals(other.getOrderNum()))
            && (this.getSendSmsFlag() == null ? other.getSendSmsFlag() == null : this.getSendSmsFlag().equals(other.getSendSmsFlag()))
            && (this.getSendAppFlag() == null ? other.getSendAppFlag() == null : this.getSendAppFlag().equals(other.getSendAppFlag()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getValidFlag() == null ? other.getValidFlag() == null : this.getValidFlag().equals(other.getValidFlag()))
            && (this.getCreateState() == null ? other.getCreateState() == null : this.getCreateState().equals(other.getCreateState()))
            && (this.getDevice() == null ? other.getDevice() == null : this.getDevice().equals(other.getDevice()))
            && (this.getDevGuid() == null ? other.getDevGuid() == null : this.getDevGuid().equals(other.getDevGuid()))
            && (this.getSourceObj() == null ? other.getSourceObj() == null : this.getSourceObj().equals(other.getSourceObj()))
            && (this.getCouponType() == null ? other.getCouponType() == null : this.getCouponType().equals(other.getCouponType()))
            && (this.getOther() == null ? other.getOther() == null : this.getOther().equals(other.getOther()))
            && (this.getChannel() == null ? other.getChannel() == null : this.getChannel().equals(other.getChannel()))
            && (this.getPreferentialType() == null ? other.getPreferentialType() == null : this.getPreferentialType().equals(other.getPreferentialType()))
            && (this.getCouponMoney() == null ? other.getCouponMoney() == null : this.getCouponMoney().equals(other.getCouponMoney()))
            && (this.getCouponTitle() == null ? other.getCouponTitle() == null : this.getCouponTitle().equals(other.getCouponTitle()))
            && (this.getCouponRule() == null ? other.getCouponRule() == null : this.getCouponRule().equals(other.getCouponRule()))
            && (this.getRuleType() == null ? other.getRuleType() == null : this.getRuleType().equals(other.getRuleType()))
            && (this.getMaxPreferentialPrice() == null ? other.getMaxPreferentialPrice() == null : this.getMaxPreferentialPrice().equals(other.getMaxPreferentialPrice()))
            && (this.getDiscountPrice() == null ? other.getDiscountPrice() == null : this.getDiscountPrice().equals(other.getDiscountPrice()))
            && (this.getValidTimeType() == null ? other.getValidTimeType() == null : this.getValidTimeType().equals(other.getValidTimeType()))
            && (this.getValidDays() == null ? other.getValidDays() == null : this.getValidDays().equals(other.getValidDays()))
            && (this.getRealDiscountMoney() == null ? other.getRealDiscountMoney() == null : this.getRealDiscountMoney().equals(other.getRealDiscountMoney()))
            && (this.getUrlUse() == null ? other.getUrlUse() == null : this.getUrlUse().equals(other.getUrlUse()))
            && (this.getMobileEn() == null ? other.getMobileEn() == null : this.getMobileEn().equals(other.getMobileEn()))
            && (this.getRegisterUserFlag() == null ? other.getRegisterUserFlag() == null : this.getRegisterUserFlag().equals(other.getRegisterUserFlag()))
            && (this.getBussinessUserFlag() == null ? other.getBussinessUserFlag() == null : this.getBussinessUserFlag().equals(other.getBussinessUserFlag()))
            && (this.getIsNewRule() == null ? other.getIsNewRule() == null : this.getIsNewRule().equals(other.getIsNewRule()))
            && (this.getLimitUseFlag() == null ? other.getLimitUseFlag() == null : this.getLimitUseFlag().equals(other.getLimitUseFlag()))
            && (this.getRatio() == null ? other.getRatio() == null : this.getRatio().equals(other.getRatio()))
            && (this.getSmswarnTime() == null ? other.getSmswarnTime() == null : this.getSmswarnTime().equals(other.getSmswarnTime()))
            && (this.getMoreChannel() == null ? other.getMoreChannel() == null : this.getMoreChannel().equals(other.getMoreChannel()))
            && (this.getActivityKey() == null ? other.getActivityKey() == null : this.getActivityKey().equals(other.getActivityKey()))
            && (this.getCouponFlag() == null ? other.getCouponFlag() == null : this.getCouponFlag().equals(other.getCouponFlag()))
            && (this.getRuleDesc() == null ? other.getRuleDesc() == null : this.getRuleDesc().equals(other.getRuleDesc()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCodeNo() == null) ? 0 : getCodeNo().hashCode());
        result = prime * result + ((getBatchNo() == null) ? 0 : getBatchNo().hashCode());
        result = prime * result + ((getBatchExtendNo() == null) ? 0 : getBatchExtendNo().hashCode());
        result = prime * result + ((getBindFlag() == null) ? 0 : getBindFlag().hashCode());
        result = prime * result + ((getBindPhone() == null) ? 0 : getBindPhone().hashCode());
        result = prime * result + ((getValidStartTime() == null) ? 0 : getValidStartTime().hashCode());
        result = prime * result + ((getValidEndTime() == null) ? 0 : getValidEndTime().hashCode());
        result = prime * result + ((getGetTime() == null) ? 0 : getGetTime().hashCode());
        result = prime * result + ((getBindTime() == null) ? 0 : getBindTime().hashCode());
        result = prime * result + ((getOrderNum() == null) ? 0 : getOrderNum().hashCode());
        result = prime * result + ((getSendSmsFlag() == null) ? 0 : getSendSmsFlag().hashCode());
        result = prime * result + ((getSendAppFlag() == null) ? 0 : getSendAppFlag().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getValidFlag() == null) ? 0 : getValidFlag().hashCode());
        result = prime * result + ((getCreateState() == null) ? 0 : getCreateState().hashCode());
        result = prime * result + ((getDevice() == null) ? 0 : getDevice().hashCode());
        result = prime * result + ((getDevGuid() == null) ? 0 : getDevGuid().hashCode());
        result = prime * result + ((getSourceObj() == null) ? 0 : getSourceObj().hashCode());
        result = prime * result + ((getCouponType() == null) ? 0 : getCouponType().hashCode());
        result = prime * result + ((getOther() == null) ? 0 : getOther().hashCode());
        result = prime * result + ((getChannel() == null) ? 0 : getChannel().hashCode());
        result = prime * result + ((getPreferentialType() == null) ? 0 : getPreferentialType().hashCode());
        result = prime * result + ((getCouponMoney() == null) ? 0 : getCouponMoney().hashCode());
        result = prime * result + ((getCouponTitle() == null) ? 0 : getCouponTitle().hashCode());
        result = prime * result + ((getCouponRule() == null) ? 0 : getCouponRule().hashCode());
        result = prime * result + ((getRuleType() == null) ? 0 : getRuleType().hashCode());
        result = prime * result + ((getMaxPreferentialPrice() == null) ? 0 : getMaxPreferentialPrice().hashCode());
        result = prime * result + ((getDiscountPrice() == null) ? 0 : getDiscountPrice().hashCode());
        result = prime * result + ((getValidTimeType() == null) ? 0 : getValidTimeType().hashCode());
        result = prime * result + ((getValidDays() == null) ? 0 : getValidDays().hashCode());
        result = prime * result + ((getRealDiscountMoney() == null) ? 0 : getRealDiscountMoney().hashCode());
        result = prime * result + ((getUrlUse() == null) ? 0 : getUrlUse().hashCode());
        result = prime * result + ((getMobileEn() == null) ? 0 : getMobileEn().hashCode());
        result = prime * result + ((getRegisterUserFlag() == null) ? 0 : getRegisterUserFlag().hashCode());
        result = prime * result + ((getBussinessUserFlag() == null) ? 0 : getBussinessUserFlag().hashCode());
        result = prime * result + ((getIsNewRule() == null) ? 0 : getIsNewRule().hashCode());
        result = prime * result + ((getLimitUseFlag() == null) ? 0 : getLimitUseFlag().hashCode());
        result = prime * result + ((getRatio() == null) ? 0 : getRatio().hashCode());
        result = prime * result + ((getSmswarnTime() == null) ? 0 : getSmswarnTime().hashCode());
        result = prime * result + ((getMoreChannel() == null) ? 0 : getMoreChannel().hashCode());
        result = prime * result + ((getActivityKey() == null) ? 0 : getActivityKey().hashCode());
        result = prime * result + ((getCouponFlag() == null) ? 0 : getCouponFlag().hashCode());
        result = prime * result + ((getRuleDesc() == null) ? 0 : getRuleDesc().hashCode());
        return result;
    }
}